package com.itheima.Thread06;

public class Demo01 {
    public static void main(String[] args) {

        MyThread mt = new MyThread();
        //创建线程对象
        Thread th = new Thread(mt);
        Thread th1 = new Thread(mt);
        //开启线程1
        th.start();
        //开启线程2
        th1.start();
    }
}
